import React from 'react';
class TimerActionButton extends React.Component{
    render() {
        if (this.props.timerIsRunning){
            return(
                <div onClick={this.props.onStopClick}>
                    停止
                </div>
            )
        }else{
            return(
                <div onClick={this.props.onStartClick}>
                    开始
                </div>
            )
        }

    }
}
export default TimerActionButton;